<template>
  <div class="createPost-container">
    <Tinymce ref="editor" v-model="postForm.content" :height="400" />
  </div>
</template>

<script>
import Tinymce from '@/components/Tinymce'
const defaultForm = {
  status: 'draft',
  title: '', // 文章题目
  content: '', // 文章内容
  content_short: '', // 文章摘要
  source_uri: '', // 文章外链
  image_uri: '', // 文章图片
  display_time: undefined, // 前台展示时间
  id: undefined,
  platforms: ['a-platform'],
  comment_disabled: false,
  importance: 0
}

export default {
  components: { Tinymce,  },
  data() {
    return {
      postForm: Object.assign({}, defaultForm),
    }
  },
}
</script>

